/// requestNo : null
/// code : 900
/// message : "操作成功"
/// records : {"departmentList":[{"id":0,"name":"在建","value":null},{"id":2,"name":"停工","value":null},{"id":1,"name":"竣工","value":null},{"id":3,"name":"新批","value":null},{"id":4,"name":"完工待验收","value":null}]}
/// total : null

class DistrictCommonM {
  DistrictCommonM({
      dynamic requestNo, 
      num? code, 
      String? message, 
      Records? records, 
      dynamic total,}){
    _requestNo = requestNo;
    _code = code;
    _message = message;
    _records = records;
    _total = total;
}

  DistrictCommonM.fromJson(dynamic json) {
    _requestNo = json['requestNo'];
    _code = json['code'];
    _message = json['message'];
    _records = json['records'] != null ? Records.fromJson(json['records']) : null;
    _total = json['total'];
  }
  dynamic _requestNo;
  num? _code;
  String? _message;
  Records? _records;
  dynamic _total;
DistrictCommonM copyWith({  dynamic requestNo,
  num? code,
  String? message,
  Records? records,
  dynamic total,
}) => DistrictCommonM(  requestNo: requestNo ?? _requestNo,
  code: code ?? _code,
  message: message ?? _message,
  records: records ?? _records,
  total: total ?? _total,
);
  dynamic get requestNo => _requestNo;
  num? get code => _code;
  String? get message => _message;
  Records? get records => _records;
  dynamic get total => _total;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['requestNo'] = _requestNo;
    map['code'] = _code;
    map['message'] = _message;
    if (_records != null) {
      map['records'] = _records?.toJson();
    }
    map['total'] = _total;
    return map;
  }

}

/// departmentList : [{"id":0,"name":"在建","value":null},{"id":2,"name":"停工","value":null},{"id":1,"name":"竣工","value":null},{"id":3,"name":"新批","value":null},{"id":4,"name":"完工待验收","value":null}]

class Records {
  Records({
      List<DepartmentList>? departmentList,}){
    _departmentList = departmentList;
}

  Records.fromJson(dynamic json) {
    if (json['departmentList'] != null) {
      _departmentList = [];
      json['departmentList'].forEach((v) {
        _departmentList?.add(DepartmentList.fromJson(v));
      });
    }
  }
  List<DepartmentList>? _departmentList;
Records copyWith({  List<DepartmentList>? departmentList,
}) => Records(  departmentList: departmentList ?? _departmentList,
);
  List<DepartmentList>? get departmentList => _departmentList;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (_departmentList != null) {
      map['departmentList'] = _departmentList?.map((v) => v.toJson()).toList();
    }
    return map;
  }

}

/// id : 0
/// name : "在建"
/// value : null

class DepartmentList {
  DepartmentList({
      num? id, 
      String? name, 
      dynamic value,}){
    _id = id;
    _name = name;
    _value = value;
}

  DepartmentList.fromJson(dynamic json) {
    _id = json['id'];
    _name = json['name'];
    _value = json['value'];
  }
  num? _id;
  String? _name;
  dynamic _value;
DepartmentList copyWith({  num? id,
  String? name,
  dynamic value,
}) => DepartmentList(  id: id ?? _id,
  name: name ?? _name,
  value: value ?? _value,
);
  num? get id => _id;
  String? get name => _name;
  dynamic get value => _value;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = _id;
    map['name'] = _name;
    map['value'] = _value;
    return map;
  }

}